package com.example.springboot_sp.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author 郭守军
 * @since 2022-09-08
 */
@Getter
@Setter
  @ApiModel(value = "Article对象", description = "")
public class Article implements Serializable {

    private static final long serialVersionUID = 1L;

      @TableId(value = "id", type = IdType.AUTO)
      private Integer id;

    private String name;

      @ApiModelProperty("内容")
      private String content;

      @ApiModelProperty("用户名称")
      private String user;

      @ApiModelProperty("发布时间")
      private String time;

      @ApiModelProperty("是否启用")
      private Boolean enable;

      private String md5;

      @ApiModelProperty("文章概述")
      private String summary;

      @ApiModelProperty("作者的id")
      private Integer userid;

      @ApiModelProperty("文章类型的id")
      private Integer typeid;

      @ApiModelProperty("阅读次数")
      private Integer readnumber;

      @ApiModelProperty("标签")
      private String tag;

      @ApiModelProperty("封面")
      private String cover;

      private String type;

}
